﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
    <link rel="stylesheet" href="../../../../lib/bootstrap/dist/css/bootstrap.min.css" />
    <link rel="stylesheet" href="../../../../css/site.css" />
</head>
<body>
    <form>
        <div class="form-group form-check">
            <input type="checkbox" class="form-check-input" id="IsUsePowerSell">
            <label class="form-check-label" for="IsUsePowerSell">IsUsePowerSell</label>
        </div>
        <div class="form-group">
            <label for="PowerSellPath">PowerSellPath</label>
            <input type="text" class="form-control" id="PowerSellPath" placeholder="fullpath">
        </div>
        <div class="form-group">
            <label for="remoteUrl">Script</label>
            <textarea id="Script" style="height:150px; width:100%;"></textarea>
        </div>
        <br />
    </form>

    <script src="../../../../lib/jquery/dist/jquery.min.js"></script>
    <script src="../../../../lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>

    <script>

        function getFormData() {
            return JSON.stringify({
                IsUsePowerSell: $('#IsUsePowerSell').prop('checked')
                , PowerSellPath: $('#PowerSellPath').val()
                , Script: $('#Script').val()
            });
        }
        function setFormData(dataStr) {
            var data = JSON.parse(dataStr);
            $('#IsUsePowerSell').prop('checked',data.IsUsePowerSell)
            $('#PowerSellPath').val(data.PowerSellPath)
            $('#Script').val(data.Script)
        }

    </script>
</body>
</html>